<include file='Common:header' />

<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
    <!-- #section:basics/sidebar -->
    <include file='Common:left' />
    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <!--主题-->
                <div class="page-header">
                    <h1>
                        您当前操作
                        <small>
                            <i class="ace-icon fa fa-angle-double-right"></i>
                            添加商品
                        </small>
                    </h1>
                </div>
                <script>
                    $(function () {
                        function checkForm() {
                            if ('' == $.trim($('#com_name').val())) {
                                $('#resone').attr("class", "middle highmsg");//ID为resone 重新class赋值
                                $('#resone').html('商品名不能为空').show();//id为resone 赋值html值
                                $('#crops_name').focus();
                                return false;
                            }
                        }
                    });
                </script>
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" name="house_edit" id="house_edit" method="post" onsubmit="return checkForm();" action="/admin.php/Land/house_edit">
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 房屋名：  </label>
                                <div class="col-sm-10">
                                    <input type="text" name="house_name" id="house_name" value="茅草屋12" placeholder="输入房屋名" class="col-xs-10 col-sm-4" />
                                    <input type='hidden' name='edit_id' value='1'>
                                    <span class="middle" id="resone"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 房屋等级：  </label>
                                <div class="col-sm-10">
                                    <input type="text" name="house_level" id="house_level" value="123" placeholder="输入房屋等级" class="col-xs-10 col-sm-4" />
                                    <span class="middle" id="resone"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 房屋参数：  </label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" id="house_info" name="house_info" placeholder="输入参数信息" style="margin: 0px -0.015625px 0px 0px; height: 62px; width: 416px;">{"crops":"11:300;12:300","diamond":"5001"}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1">  房屋样式：  </label>
                                <div id="uploader-demo" class="webuploader_col">
                                    <!--用来存放item-->
                                    <div id="fileList" class="uploader-list">
                                        <div class="file-item upload-state-done">
                                            <img src="/Public/UploadFiles_s/2017-06-08/5938ba568f733.png" width="100">
                                        </div>
                                    </div>
                                    <input type="hidden" value="2017-06-08/5938ba568f733.png" id="uploader_file" name="uploader_file"/>
                                    <div id="filePicker">选择图片</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 描述：  </label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" id="form-field-8" name="house_description" placeholder="输入描述" style="margin: 0px -0.015625px 0px 0px; height: 62px; width: 416px;">22233</textarea>
                                </div>
                            </div>
                            <input type="hidden" value="/admin.php/land/upimage.html" id='webuploader_server'/>

                            <div style='text-align: center;'>
                                <button class="btn btn-info" type="submit">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    保存
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" onclick="history.go(-1);">
                                    <i class="ace-icon fa fa-undo bigger-110"></i>
                                    返回
                                </button>
                            </div>
                        </form>
                    </div>
                </div>


                <include file='Common:header_nav' />

            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->

    <include file='Common:footer' />

</div><!-- /.main-container -->

<!--下拉样式以及JS-->
<link rel="stylesheet" href="__PUBLIC__/assets/css/chosen.css" />
<script src="__PUBLIC__/assets/js/chosen.jquery.js"></script>
<!-- inline scripts related to this page -->
</body>
</html>
